package me.xiaoyan.java.chapter12;

import me.xiaoyan.java.chapter11.Admin;

/**
 * 战斗鸡手机
 * @author keley
 */
public class Phone {
	/**
	 * 品牌
	 */
	String brand;
	/**
	 * 电池
	 */
	Cell cell;
	
	/**
	 * 手机电池充电
	 */
	public void setPower()
	{
		cell.setPower();
	}
	
	
	public void test()
	{
		Admin admin  = new Admin();
		admin.modifyPassWord();
	}
	
	

	public static void main(String[] args) {
		//创建一个手机
		Phone phone = new Phone();
		phone.brand = "战斗机";
		//创建一个电池
		Cell cell = new Cell();
		cell.brand = "飞毛腿";
		cell.type = "战斗鸡";
		cell.price = 10000000;
		
		
		phone.cell = cell;
		//手机的电池对象的showInfo()方法
		phone.cell.showInfo();
		//手机的充电方法
		phone.setPower();
	}

}
